<?php
/**
 * name:新增作业记录
 * url:/erpHomework/add_homework_record
 */

$oshr_octid       = $route->bodyParams['oshr_octid'];                 //课时ID
$oshr_osid        = $route->bodyParams['oshr_osid'];                  //学生ID
$oshr_status      = $route->bodyParams['oshr_status'];               //作业状态 0-待批改 1-已批改
$oshr_create_time = $route->bodyParams['oshr_create_time'];                 //作业评分 0-A 1-B 2-C 3-D
$oshr_homework    = $route->bodyParams['oshr_homework'];                 //作业评分 0-A 1-B 2-C 3-D
$oshr_oesid       = $route->bodyParams['oshr_oesid'];                 //


//写入数组
$insertArr = [
    'oshr_octid'       => $oshr_octid,
    'oshr_osid'        => $oshr_osid,
    'oshr_status'      => $oshr_status,
    'oshr_homework'    => $oshr_homework,
    'oshr_oesid'       => $oshr_oesid,
    'oshr_create_time' => time(),
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_submit_homework_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );
